package com.dragon.pear.modules.sample.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;
import com.dragon.common.spring.business.base.BaseCrudController;
import com.dragon.pear.modules.sample.domain.entity.SmpCartEntity;
import com.dragon.pear.modules.sample.web.model.params.create.SmpCartCreateParam;
import com.dragon.pear.modules.sample.web.model.params.update.SmpCartUpdateParam;
import com.dragon.pear.modules.sample.web.model.params.search.SmpCartSearchParam;
import com.dragon.pear.modules.sample.web.model.params.order.SmpCartOrderParam;
import com.dragon.pear.modules.sample.web.model.results.SmpCartResult;
import com.dragon.pear.modules.sample.dao.repository.SmpCartRepository;
import com.dragon.pear.modules.sample.service.assistants.converters.SmpCartConverter;
import com.dragon.pear.modules.sample.service.def.SmpCartService;
import com.dragon.pear.modules.sample.web.api.SmpCartApi;

/**
 * @author Chris Chan
 * Create on 2025-10-15 17:59
 * Use for: 购物车 接口实现
 * Explain:
 * 
 */
@RestController
@RequestMapping("smp/cart")
public class SmpCartController implements SmpCartApi, BaseCrudController<
        SmpCartEntity,
        SmpCartCreateParam,
        SmpCartUpdateParam,
        SmpCartSearchParam,
        SmpCartOrderParam,
        SmpCartResult,
        SmpCartRepository,
        SmpCartConverter,
        SmpCartService
        > {

    @Autowired
    SmpCartService smpCartService;

    @Override
    public SmpCartService getService() {
        return smpCartService;
    }
}